<script setup>
import {useHomeStore} from "@/stores/home";

const data = useHomeStore().data.brands;
</script>

<template>
  <!--商标-->
    <div class="brand">
        <div class="py-container">
            <ul class="brand-list">
                <li class="brand-item" v-for="(item, index) in data" :key="index">
                    <img :src="item.pic" :alt="item.description"/>
                </li>
            </ul>
        </div>
    </div>
</template>

<style scoped lang="less">
.brand {
  margin: 10px 0;

  .py-container {
    width: 1200px;
    margin: 0 auto;

    .brand-list {
      overflow: hidden;
      padding: 15px 0;
      background: #f7f7f7;
      line-height: 18px;

      .brand-item {
        width: 120px;
        float: left;
        height: 37px;

        img {
          border-left: 1px dotted #ccc;
          padding: 0 10px;
        }

        &:first-child {
          img {
            border-left: 0;
          }
        }
      }
    }
  }
}
</style>
